/**
 * 2010(c) Copyright Oceansoft Information System Co.,LTD. All rights reserved.
 * <p>
 * Compile: JDK 1.6+
 * <p>
 * 版权所有(C)：江苏欧索软件有限公司
 * <p>
 * 公司名称：江苏欧索软件有限公司
 * <p>
 * 公司地址：中国苏州科技城青山路1号
 * <p>
 * 网址: http://www.oceansoft.com.cn
 * <p>
 * 作者: 090922(陈伟)
 * <p>
 * 文件名: com.oceansoft.mobile.econsole.modules.base.entity.Pager.java 
 * <p>
 * 类产生时间: 2014-4-30 下午 13:16
 * <p>
 * 负责人: 090922(陈伟)
 * <p>
 * Email:javacspring@gmail.com
 * <p>
 * 所在组 : 掌上公安应用平台
 * <p>
 * 所在部门: 开发部--手持技术部
 * <p>
 * <p>
 */
package com.oceansoft.mobile.econsole.modules.base.entity;

import com.oceansoft.mobile.econsole.common.constant.Constant;
import org.springframework.util.StringUtils;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * 分页工具类
 *
 * @author: Andy
 * @time: 2014-4-30 下午 13:16
 */
public class Query {

    public final static int PAGE_SIZE = 20;
    private int numPerPage = PAGE_SIZE;
    private int pageNum = 1;
    private String orderField;
    private String orderDirection;
    private String keywords;
    private Date start;
    private Date end;
    private String startTime;
    private String endTime;
    private String handler;
    private String accidentId;
    private String userSrc;
    private String content_number;
    private String sort;
    private String loginId;
    private int APIId;//监控接口78
    private int receiver;//推送对象
    private int djstatus;//快撤理赔单据状态
    private String isYy;
    private String prjStatus;
    private  String projectstatus;

    public String getPt() {
        return pt;
    }

    public void setPt(String pt) {
        this.pt = pt;
    }

    public String getaUserGuid() {
        return aUserGuid;
    }

    public void setaUserGuid(String aUserGuid) {
        this.aUserGuid = aUserGuid;
    }

    private  String pt;
    private  String aUserGuid;
    //微信
    private String title;//微信公众号名称关键字
    private String areaId;//微信公众号区域ID

    private String carNo;//堵路移车车牌号
    private String address;//堵路移车地址
    private String handleStatus;//堵路移车处理状态

    private String area;//部门
    private String highwayName;//高速路名称，地点
    private String highwaySituation;//路况
    private String releaseTime;//最近5、10、20、30、60分钟路况

    private String longitude;//经度
    private String latitude;//纬度
    private int distance = 5000;//单位米
    private String type;//类型

    private String isReply;//我的投诉是否回复0，未回复，1，已回复

    private String userGuid;//手机用户、微信用户guid

    public String getProjectstatus() {
        return projectstatus;
    }

    public void setProjectstatus(String projectstatus) {
        this.projectstatus = projectstatus;
    }

    public String getIsYy() {
        return isYy;
    }

    public void setIsYy(String isYy) {
        this.isYy = isYy;
    }

    public String getPrjStatus() {
        return prjStatus;
    }

    public void setPrjStatus(String prjStatus) {
        this.prjStatus = prjStatus;
    }


    public int getAPIId() {
		return APIId;
	}

	public void setAPIId(int aPIId) {
		APIId = aPIId;
	}

	public String getLoginId() {
		return loginId;
	}

	public void setLoginId(String loginId) {
		this.loginId = loginId;
	}

	public String getSort() {
		return sort;
	}

	public void setSort(String sort) {
		this.sort = sort;
	}

	public String getContent_number() {
		return content_number;
	}

	public void setContent_number(String content_number) {
		this.content_number = content_number;
	}

	public String getUserSrc() {
		return userSrc;
	}

	public void setUserSrc(String userSrc) {
		this.userSrc = userSrc;
	}

	public String getHandler() {
		return handler;
	}

	public void setHandler(String handler) {
		this.handler = handler;
	}

	public String getAccidentId() {
		return accidentId;
	}

	public void setAccidentId(String accidentId) {
		this.accidentId = accidentId;
	}

	public Query() {
    }

    public Query(int pageSize, int pageIndex) {
        this.numPerPage = pageSize;
        this.pageNum = pageIndex;
    }

    public String getIsReply() {
        return isReply;
    }

    public void setIsReply(String isReply) {
        this.isReply = isReply;
    }

    public int getNumPerPage() {
        return numPerPage;
    }

    public void setNumPerPage(int numPerPage) {
        this.numPerPage = numPerPage;
    }

    public int getPageNum() {
        return this.pageNum > 0 ? this.pageNum : PAGE_SIZE;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public String getOrderField() {
        return orderField;
    }

    public void setOrderField(String orderField) {
        this.orderField = orderField;
    }

    public String getOrderDirection() {
        return "desc".equals(orderDirection) ? "desc" : "asc";
    }

    public void setOrderDirection(String orderDirection) {
        this.orderDirection = orderDirection;
    }

    public String getKeywords() {
        return keywords;
    }

    public void setKeywords(String keywords) {
        if (null != keywords && keywords.trim().length() > 0)
            this.keywords = keywords;
    }

    public int getStartRow() {
        if (1 >= pageNum) {
            return 0;
        } else {
            return (pageNum - 1) * numPerPage;
        }
    }

    public int getEndRow() {
        return numPerPage;
    }

    public Date getStart() {
        return start;
    }

    public void setStart(Date start) {
        this.start = start;
    }

    public Date getEnd() {
        return end;
    }

    public void setEnd(Date end) {
        this.end = end;
    }

	public int getReceiver() {
		return receiver;
	}

	public void setReceiver(int receiver) {
		this.receiver = receiver;
	}

	public int getDjstatus() {
		return djstatus;
	}

	public void setDjstatus(int djstatus) {
		this.djstatus = djstatus;
	}

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAreaId() {
        return areaId;
    }

    public void setAreaId(String areaId) {
        this.areaId = areaId;
    }

    public String getHighwayName() {
        return highwayName;
    }

    public void setHighwayName(String highwayName) {
        this.highwayName = highwayName;
    }

    public String getHighwaySituation() {
        return highwaySituation;
    }

    public void setHighwaySituation(String highwaySituation) {
        this.highwaySituation = highwaySituation;
    }

    public String getReleaseTime() {
        return releaseTime;
    }

    public void setReleaseTime(String releaseTime) {
        this.releaseTime = releaseTime;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getCarNo() {
        return carNo;
    }

    public void setCarNo(String carNo) {
        this.carNo = carNo;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getHandleStatus() {
        return handleStatus;
    }

    public void setHandleStatus(String handleStatus) {
        this.handleStatus = handleStatus;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public int getDistance() {
        return distance;
    }

    public void setDistance(int distance) {
        this.distance = distance;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getUserGuid() {
        return userGuid;
    }

    public void setUserGuid(String userGuid) {
        this.userGuid = userGuid;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }
}
